#include"SearchBinaryTree.h"
#include<iostream>
#include<random>
#include<time.h>

int main() {
	std::vector<long long> arr;
	srand(time(0));
	for(int i = 0;i < 10000;i++)
		arr.push_back(rand()%30000);
	SearchBinaryTree<long long> BST(arr);
	for(int i = 0;i < 1000;i++)
		BST.Erase(rand()%30000);
	
	SearchBinaryTree<long long>::iterator it = BST.begin();

	for (auto& e : BST)
		std::cout << e << std::endl;
	return 0;
}